package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86155
 * date: 2024-04-12
 * Time: 18:34
 *
 * @author
 */
interface A{
    void func();//默认
    public default void func1(){
        System.out.println("haha");
    }
    public static void fun2(){

    }
}
interface A1{
    void func();
}
class B implements A{

    @Override
    public void func() {
        System.out.println("类继承！");
    }
}
abstract class C implements A{

}
class Dog implements A,A1{

    @Override
    public void func() {

    }
}
class B2{
    public void arr(){
        System.out.println("正常类");
    }
}
class Cat extends B2 implements A,A1{

    @Override
    public void func() {

    }
}
//接口之间的继承
interface D extends A,A1{
    void func3();
}
class E implements D{

    @Override
    public void func() {

    }

    @Override
    public void func3() {

    }
}
public class Test {
    public static void main(String[] args) {

    }
}
